<?php
namespace app\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'username' => 'require|max:20',
        'password' => 'require|max:35',
    ];

    protected $message = [
        'username.require' => '必须填写账号',
        'username.mobile'  => '账号必须是手机号',
        'password.require' => '必须填写密码',
        'username.max'     => '账号过长',
        'password.max'     => '密码过长',
    ];
}


